
local rousui = fk.CreateSkill{
  name = "lingling__rousui",
}

Fk:loadTranslationTable{
  ["lingling__rousui"] = "揉碎",
  [":lingling__rousui"] = "摸牌阶段开始时，你可以观看牌堆顶四张牌，并任意调整顺序。",
}

rousui:addEffect(fk.EventPhaseStart, {
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(rousui.name) and player.phase == Player.Draw
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:askToGuanxing(player, {
      cards = room:getNCards(4),
      bottom_limit = { 0, 0 },
      skill_name = rousui.name,
    })
  end,
})

return rousui
